Make GtkCssImageScaled handle scales properly
authorMatthias Clasen <mclasen@redhat.com>
Thu, 15 Mar 2018 05:15:52 +0000 (01:15 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 15 Mar 2018 10:04:08 +0000 (06:04 -0400)
commita4c2819f91e9c5b93a8dbc88d2c2bcf8704354ab
tree1c349e561561e36d89ca1f8c4a702b836b047486
parent16bf07fe333c173aa629c999c5b1a09a9f50f2ea
Make GtkCssImageScaled handle scales properly

We slightly expand the syntax of -gtk-scaled to allow
specifying an explicit scale after each image, and then
we create a single-image GtkCssImageScaled with the
preferred scale in compute().
gtk/gtkcssimagescaled.c
gtk/gtkcssimagescaledprivate.h